#!/usr/bin/env python
import os

def clean(top):
    for root, dirs, files in os.walk(top):
	for f in files:
	    file = root + "/" + f
	    if file.find(".bak") > 0:
		print file
		os.unlink(file)

if __name__ == "__main__":
    clean("../include")
    clean("../src")